<div class="row">
    <div class="col-lg-12">
        <span class="pagination_count" style="line-height: 40px;">共{{ pagination.total }}条记录 | 每页{{pagination.per_page}}
            条</span>
        <ul class="pagination pagination-lg   pull-right" style="margin: 0 0 ;">
            {% if pagination.has_prev %}
             <li>
                 <a href="{{ url_for(url, page=1, **resp) }}" ><span>首页</span></a>
             </li>
             <li>
                 <a href="{{ url_for(url, page=pagination.prev_num, **resp) }}"><span>上一页</span></a>
             </li>
            {%  endif %}

            {% for idx in pagination.iter_pages() %}
                {% if idx %}
                    {% if idx == pagination.page %}
                        <li class="active"><a href="javascript:void(0);">{{ idx }}</a></li>
                    {% else %}
                        <li><a href="{{ url_for(url, page=idx, **resp) }}">{{ idx }}</a></li>
                    {% endif %}
                {% else %}
                    <li>
                        <span class=ellipsis>...</span>
                    </li>
                {% endif %}
            {% endfor %}
            {% if pagination.has_next %}
             <li>
                    <a href="{{ url_for(url, page=pagination.next_num, **resp) }}"><span>下一页</span></a>
             </li>
             <li>
                    <a href="{{ url_for(url, page=pagination.pages, **resp) }}" ><span>尾页</span></a>
             </li>
            {%  endif %}
        </ul>
    </div>
</div>
